﻿/* Replication code for discriminant criterion-related validity study reported in Method of Study 1 in Salomon and Cimpian, "The Inherence Heuristic as a Source of Essentialist Thought"


/* Frequencies for exclusion criteria

FREQUENCIES VARIABLES=Exclude
  /ORDER=ANALYSIS.


/* Exclude cases with (1) more than one Inherence Heuristic Scale catch item wrong, (2) non-US IP addresses, (3) failed instructional manipulation check

USE ALL.
COMPUTE filter_$=(Exclude = 0).
VARIABLE LABELS filter_$ 'Exclude = 0 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.


/* Correlation matrix for Inherence Heuristic Scale, Lay Theory of Race, and Cognitive Reflection Test scores

BOOTSTRAP
  /SAMPLING METHOD=SIMPLE
  /VARIABLES INPUT=IHAvg NoAvg CRTscore 
  /CRITERIA CILEVEL=95 CITYPE=PERCENTILE  NSAMPLES=10000
  /MISSING USERMISSING=EXCLUDE.
CORRELATIONS
  /VARIABLES=IHAvg NoAvg CRTscore
  /PRINT=TWOTAIL NOSIG
  /MISSING=PAIRWISE.
EXECUTE.

/* To compare the correlations of the Inherence Heuristic Scale and the Lay Theory of Race Scale with the Cognitive Reflection Test scores, go to quantpsy.org/corrtest/corrtest2.htm
